﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using DAL;
using BookModel;

namespace BLL
{
    //读者借阅信息表

    public class borrowerIfnoBLL
    {
        //返回符合条件的记录
        public DataTable GetBorrwerBookReader(string ReadName, string Bookname)
        {
            return new DAL.borrowerIfnoDAL().GetBorrwerBookReader(ReadName, Bookname);
        }
        #region 返回指定时间内记录
        public DataTable GetBorrwerData(string Date, string date)
        {
            return new DAL.borrowerIfnoDAL().GetBorrwerData(Date, date);
        }
        #endregion

        #region 查询借阅记录原表
        public List<borrowerIfno> GetBorrowerInfo()
        {
            return new DAL.borrowerIfnoDAL().GetBorrowerInfo();
        }
        #endregion
        #region 增加借阅记录
        public string InsertBookBorrwer(borrowerIfno bsi)
        {
            return new DAL.borrowerIfnoDAL().InsertBookBorrwer(bsi);
        }
        #endregion
        #region 修改借阅记录
        public string updateBookBorrwer(borrowerIfno bsi)
        {
            return new DAL.borrowerIfnoDAL().updateBookBorrwer(bsi);
        }
        #endregion

        public List<borrowerIfno> selectborrwer()
        {
            return new DAL.borrowerIfnoDAL().Gettborrower();
        }
        public List<borrowerIfno> selectBorr(int id)
        {
            return new DAL.borrowerIfnoDAL().selectBorrow(id);

        }

         //赔偿状况
        public DataTable SelectDamages(int BorrowerID)
        {
            return new DAL.borrowerIfnoDAL().SelectDamages(BorrowerID);
        }
        public string updateBorrwer(borrowerIfno bsi)
        {
            return new DAL.borrowerIfnoDAL().updateBorrwer(bsi);
        }
    }
}
